"""
WSGI config for myproject project.

It exposes the WSGI callable as a module-level variable named `application`.
"""

import os
from django.core.wsgi import get_wsgi_application

# 设置环境变量，指定项目的 settings 文件
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ocr_config.settings')

# 获取 WSGI 应用对象
application = get_wsgi_application()